<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" type="text/css"
	href="<c:url value="/css/themes/default/easyui.css"/>">
<link rel="stylesheet" type="text/css"
	href="<c:url value="/css/themes/icon.css"/>">
<script type="text/javascript" src="<c:url value="/js/jquery.min.js"/>"></script>
<script type="text/javascript"
	src="<c:url value="/js/jquery.easyui.min.js"/>"></script>
<script type="text/javascript"
	src="<c:url value="/js/easyui-lang-zh_CN.js"/>"></script>
<title>检查科目</title>
</head>
<body>
		
	<script type="text/javascript"> 
	
		$(function(){
						
			$('#checkProjsearch').searchbox({
			    searcher:function(value,name){
			    	if(name=="类别"){
			    		$("#checkProjtab").datagrid({
				    		url:'tocheckProjKind',
				    		queryParams: {
				    			price: value
				    		}
				    	});
			    	}else if(name=="项目"){
			    		$("#checkProjtab").datagrid({
				    		url:'tocheckProjPJ',
				    		queryParams: {
				    			price: value
				    		}
				    	});
			    		
			    	}			    	
			    	
			    }
			});
		});
		$("#checkProjref").linkbutton({
			onClick:function(){	
				
				$("#checkProjtab").datagrid({
					 url: 'tocheckprojectpage'
				});
			}
		});
	</script>
	
	  <table id="checkProjtab" class="easyui-datagrid"
			data-options="
				fitColumns:true,
				fit:true,
				rownumbers: true,
			    url:'tocheckprojectpage',
				border:false ,
				pagination:true,
				toolbar: '#checkProj_btn',
				pageSize: 15,
				pageList:[15,30,45,60]
			">
			<thead>  
			    <tr>         
				    <th class="ident" data-options="field:'cprId',width:10,checkbox:true">编号</th>
					<th class="ident" data-options="field:'kind',width:10">类别</th>										
					<th class="ident" data-options="field:'cprProject',width:15,">项目</th>
					<th class="ident" data-options="field:'cprNum',width:10,">收费</th>					
				</tr>
			</thead>
		</table>
	
	<div id="checkProj_btn">
		<a id="checkProjref"class="easyui-linkbutton"
			data-options="iconCls:'icon-reload',plain:true">显示全部记录</a>
		<input id="checkProjsearch" class="easyui-searchbox" 
			data-options="menu:'#checkProjee',width:220,prompt:'请输入。。。。'">
	</div>
	<div id="checkProjee" style=" width:90px">
		<div date-options="name:'name'">类别</div>
		<div date-options="name:'name'">项目</div>
	</div>
		
</body>
</html>